package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.UserInfo;
import com.atguigu.lease.web.admin.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author xiongkunYang
 * @description 针对表【user_info(用户信息表)】的数据库操作Mapper
 * @createDate 2025-04-19 22:27:34
 * @Entity com.atguigu.lease.model.entity.UserInfo
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
     * 根据条件分页查询用户信息
     *
     * @param page 分页对象，用于封装分页信息和数据
     * @param queryVo 查询条件对象，包含各种查询参数
     * @return 填充了用户信息的分页对象
     */
    IPage<UserInfo> selectUserInfoPageByQuery(@Param("page") Page<UserInfo> page,
                                              @Param("queryVo")UserInfoQueryVo queryVo);
}




